package com.pzh.assignment.service.impl;

import com.pzh.assignment.common.bean.vo.TaskVO;
import com.pzh.assignment.entity.Task;
import com.pzh.assignment.mapper.TaskMapper;
import com.pzh.assignment.service.ITaskService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author pengzhihao
 * @since 2022-04-16
 */
@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements ITaskService {

    @Autowired
    TaskMapper taskMapper;

    @Override
    public List<TaskVO> listTaskVO(Integer teacherId) {
        return taskMapper.listTaskVO(teacherId);
    }
}
